package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.userentity.UserRelationShip;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.repository.FlowUserRelationShipRepository;
import com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.mapper.FlowUserRelationShipDAO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
　　* @description: 用户关系数据持久化层实现
　　* @author shenrm
　　* @date 2021/11/3 15:10
　　*/
@Slf4j
@Repository
public class FlowUserRelationShipRepositoryImpl implements FlowUserRelationShipRepository {

    @Autowired
    private FlowUserRelationShipDAO flowUserRelationShipDAO;

    @Override
    public List<UserRelationShip> getUserRelationShipList() {
        return flowUserRelationShipDAO.getUserRelationShipList();
    }

    @Override
    public UserRelationShip getUserRelationShipByShipType(String shipType) {
        return flowUserRelationShipDAO.getUserRelationShipByShipType(shipType);
    }
}
